package com.example.agriapp.model.bean;

// Message.java
    public  class Message {
        String sender;
        String tag;
        String content;
        String time;

    public Message() {
    }
private int userId;
    private String username;
    private int id;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Message(String sender, String tag, String content, String time) {
            this.sender = sender;
            this.tag = tag;
            this.content = content;
            this.time = time;
        }

    public Message(String sender, String time, String content) {
        this.sender = sender;
        this.time = time;
        this.content = content;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }
}